-- GENERATED SPELL FOR [Grumbald One-Eye] --


function spell0_26681(pUnit, Event) --@Elemental Enlightenment,Self--
pUnit:FullCastSpellOnTarget(52495,pUnit)
pUnit:RegisterEvent('Sorts_26681', 640, 1)
end

function spell1_26681(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(13339,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26681', 643, 1)
end

function spell2_26681(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_26681', 8298, 1)
end

function spell3_26681(pUnit, Event) --@Frostfire Bolt,n/a--
pUnit:FullCastSpellOnTarget(51779,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26681', 12000, 1)
end

function Sorts_26681(pUnit, Event)
local choix_sorts_26681 = math.random(0, 3)
if choix_sorts_26681 == 0 then
pUnit:RegisterEvent('spell0_26681', 1, 1)
end
if choix_sorts_26681 == 1 then
pUnit:RegisterEvent('spell1_26681', 1, 1)
end
if choix_sorts_26681 == 2 then
pUnit:RegisterEvent('spell2_26681', 1, 1)
end
if choix_sorts_26681 == 3 then
pUnit:RegisterEvent('spell3_26681', 1, 1)
end
end

function mob26681_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26681', math.random(1500, 3000), 1)
end

function mob26681_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26681_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26681_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26681, 1, 'mob26681_Action')
RegisterUnitEvent(26681, 2, 'mob26681_Leave')
RegisterUnitEvent(26681, 3, 'mob26681_Kill')
RegisterUnitEvent(26681, 4, 'mob26681_Die')
